package com.dk.service;

import com.dk.pojo.TPerson;
import com.dk.pojo.TRole;

import java.util.List;

public interface UserService {
    List<TPerson> getInfo();

    List<TRole> getRoleInfo();

    boolean addInfo(TPerson person, Integer[] rids);

    TPerson getUserInfoById(Integer pid);

    List<Integer> getUserRoleInfoById(Integer pid);

    boolean updateInfo(TPerson person, Integer[] rids);

    boolean deleteUserInfo(Integer pid);

    TPerson selectByName(String pname);
}
